package com.example.shop.logistics.service;

import com.example.shop.common.api.ServiceReturn;
import com.example.shop.logistics.dto.DeliveryBill;
import com.example.shop.pojo.Merchant;
import com.example.shop.pojo.User;

public interface LogisticsService {

    /**
     * 商家发货
     * @param deliveryMerchant 发货的商家
     * @param bill 发货单
     * @return 返回发货状态，发货成功返回true
     */
    ServiceReturn<Boolean> deliveryGoods(Merchant deliveryMerchant, DeliveryBill bill);

    /**
     * 确认收货指定订单
     * @param user 确认收货的用户
     * @param orderId 订单id
     * @return 返回确认状态，确认成功返回true
     */
    ServiceReturn<Boolean> ConfirmGoods(User user,long orderId);
}
